import request from '@/utils/request'

// 查询董监高列表
export function listDsSeniorManager(query) {
  return request({
    url: '/manager/dsSeniorManager/list',
    method: 'get',
    params: query
  })
}

// 查询董监高详细
export function getDsSeniorManager(id) {
  return request({
    url: '/manager/dsSeniorManager/' + id,
    method: 'get'
  })
}

// 保存董监高
export function saveDsSeniorManager(data) {
  return request({
    url: '/manager/dsSeniorManager/save',
    method: 'post',
    data: data
  })
}

// 保存董监高
export function saveDsSeniorManagerData(data) {
  return request({
    url: '/manager/dsSeniorManager/saveData',
    method: 'post',
    data: data
  })
}

// 删除董监高
export function delDsSeniorManager(id) {
  return request({
    url: '/manager/dsSeniorManager/' + id,
    method: 'delete'
  })
}

// 导出董监高
export function exportDsSeniorManager(query) {
  return request({
    url: '/manager/dsSeniorManager/export',
    method: 'get',
    params: query
  })
}

// 查询董监高列表根据公司ID
export function dsListByCompanyId(query) {
  return request({
    url: '/manager/dsSeniorManager/listByCompanyId',
    method: 'get',
    params: query
  })
}
